import { IsString, IsNotEmpty } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class LoginDto {
  @ApiProperty({ description: 'Email or phone number', example: 'user@example.com' })
  @IsString()
  @IsNotEmpty({ message: 'Please enter email or phone number' })
  identifier: string;

  @ApiProperty({ description: 'Password', example: 'password123' })
  @IsString()
  @IsNotEmpty({ message: 'Please enter password' })
  password: string;
}